package com.zpark.feign.config;

import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @PackageName: com.zpark.feign.config
 * @ClassName: FeignConfiguration
 * @Description:
 * @author: RZS
 * @date: 2022/11/22  16:07
 */
@Configuration
public class FeignConfiguration {

    /**
     * 自定义日志
     */
    @Bean
    public Logger.Level loggerLevelFeign(){
        return Logger.Level.FULL;
    }

    /**
     * 修改默认的配置契约
     *      原生SpringMVC的注解将无法使用
     * @return
     */
//    @Bean
//    public Contract feignContract() {
//        return new feign.Contract.Default();
//    }
}
